/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prognosisdataalgo.comparators;

import java.util.Comparator;

/**
 * @author ApT
 */
public class MaxMinComparator implements Comparator<Double> {

    @Override
    public int compare(Double o1, Double o2) {
        if (o1 > o2) {
            return 1;
        } else if (o1 == o2) {
            return 0;
        } else {
            return -1;
        }

    }
}
